bpo-31783: Fix a race condition creating workers during shutdown#13171
bpo-31783: Fix a race condition creating workers during shutdown#13171brianquinlan merged 4 commits intopython:masterfrom
Conversation
|
Can you add a test for this, thanks. |
|
The race condition occurs with the following set of context switches: At this point there is a new thread added to The bug has a patch with |
|
I don't think writing a test for this would be feasible because provoking the race condition requires very specific timing that, at least on my machine, I can't provoke without adding |
|
@brianquinlan: Please replace |
|
Thanks @brianquinlan for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
Thanks @brianquinlan for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
|
Sorry, @brianquinlan, I could not cleanly backport this to |
|
Sorry @brianquinlan, I had trouble checking out the |
…hon#13171) * bpo-31783: Fix a race condition while creating workers during interpreter shutdown * 📜🤖 Added by blurb_it.
…hon#13171) * bpo-31783: Fix a race condition while creating workers during interpreter shutdown * 📜🤖 Added by blurb_it.
https://bugs.python.org/issue31783